import request from '@/utils/request'

// 查询家庭列表
export function listUser_family(query) {
  return request({
    url: '/ora/user_family/list',
    method: 'get',
    params: query
  })
}

// 查询家庭详细
export function getUser_family(id) {
  return request({
    url: '/ora/user_family/' + id,
    method: 'get'
  })
}

// 新增家庭
export function addUser_family(data) {
  return request({
    url: '/ora/user_family',
    method: 'post',
    data: data
  })
}

// 修改家庭
export function updateUser_family(data) {
  return request({
    url: '/ora/user_family',
    method: 'put',
    data: data
  })
}

// 删除家庭
export function delUser_family(id) {
  return request({
    url: '/ora/user_family/' + id,
    method: 'delete'
  })
}
